package lab02.test10;

/**
 * Created by dell on 2017/10/21.
 */
public class People {
    String name;
    String gender;
    String IDnumber;
    int age;
    public String getName(){return name;}
    public String getGender(){return gender;}
    public String getIDnumber(){return IDnumber;}
    public int getAge(){return age;}
    public String toString(){
        return (name+" "+gender+" "+IDnumber+" "+age);
    }

    //行为:学习、工作
    void study(){
        System.out.println("study");
    }
    void work(){
        System.out.println("work");
    }
}
